package com.park.web.util.close;

import java.io.Closeable;
import java.io.IOException;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class CloseUtil {
	private CloseUtil(){}
	private static final  Logger logger = LoggerFactory.getLogger(CloseUtil.class);

	public static void close(Closeable closeable){
		if(closeable != null){
			try {
				closeable.close();
			} catch (IOException e) {
				logger.error("text转换成pdf，流关闭错误",e);
			}
		}
	}
}
